#
#  PyObjHelloController.py
#  PyObjHello
#
#  Created by Wang Shao-chuan on 2010/12/31.
#  Copyright (c) 2010 National Taiwan University. All rights reserved.
#

import objc
from Foundation import *

class PyObjHelloController(NSObject):
  helloTextBind = objc.ivar(u"helloTextBind")
  def awakeFromNib(self):
    NSLog(u"awakeAfterNib")
    self.helloTextBind = u'Hi, ' + NSUserName()

  @objc.IBAction
  def buttonPressed_(self, sender):
    NSLog(u"ButtonPressed")
    self.helloTextBind = u'Button Pressed'
